package br.com.sgs.basic;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * @author MaUrO FiLhO
 */
public class TrataDate {

    public  static Date setData(String date){

        DateFormat dt= new SimpleDateFormat("dd/MM/yyyy");
        Date data = null;
        try {
            data = dt.parse(date);
        } catch (ParseException ex) {
            Logger.getLogger(TrataDate.class.getName()).log(Level.SEVERE, null, ex);
        }
     return data;
    }

}
